webhostec said:
well but preparing the whole design of your web page in notepad is not so easy if you are going to have a lot of tables and so on
Rubbish, I extensively use tables. I don't use frames, and I do use CSS style-sheets. Tables are dead easy, everything is dead easy. Except that Mozilla refuses to display tables for the full height of the page unless it has to. Stupid Mozilla. And don't you just hate it when you visit a site that OBVIOUSLY wants to fit to the width of a full-screen browser in 600x800 res? Especially with my 1156x864 it really ticks me off. And sites with links that only work if JAVASCRIPT is enabled, are they unaware they can do this:
Code:
<a href=page.htm target=_blank onclick="pop_up_function('page.htm');return false">
Is that right? Gosh I haven't used Javascript in links for a while... and yes I did figure that "trick" out myself. Of course Mozilla doesn't do it properly - basically in IE if you click it it will run the onclick, if you hold shift and click it - it will still run the onclick, but if you right click it and click "open in new window" or "save target as" it will do that and not the onclick. Furthermore and most importantly for those of us who like to have scripting disabled, the link still works as any normal link should. In Mozilla it all works exactly the same except that when you hold shit and click the link it does both the href link into a new window, and the onclick event (stupid Mozilla) - but that is still better than this:
Code:
<a href=Javascript:"popupfunction"></a>
since the link performs poorly when: 1. javascript is disabled, 2. the user holds shift while clicking the link (I am in the habit of doing that), and 3. when they right click to save, or open in new window. If you'd like to test it yourself try this code and then come back and say "yes Meksilon you are indeed a genius"
Code:
<a href=http://google.com target=_blank onclick="window.open('http://google.com','','resizable=no,width=200,height=200');return false">go to google</a>
Of course IE (stupid IE) doesn't let you disable scripting for pages on your own Hard Disk, but if you use MyIE2 - which is what I use (kind of an IE shell) which you can get at
www.myie2.com - then you can disable scripting and it will work (of course, the new windows opened using the script will not be unresizable 200x200, this is normal MyIE2 behaviour).