Forum Moderators: open

Message Too Old, No Replies

Looking for settings to disable browser functions

         

hollywoodspeedway

1:43 am on Aug 28, 2006 (gmt 0)

10+ Year Member



I have been away from HTML for a while and need some assistance. i am trying to spawn a page without the File, Nav, URL, or Status bar present - additionally I do not want the window windor to be able to be resized. Last detail - I am counting on a URL posted on a site I do not own to do this - I provide the URL to them and they post as a link. Any help would be GREATLY appreciated

JAB Creations

6:42 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a JavaScript function and I don't know the code off-hand. I can tell you though to keep in mind that IE7 will force the address bar to appear in pop-ups. This post should be moved to the JavaScript forum for better exposure.

[blogs.msdn.com...]

- John

penders

9:46 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Last detail - I am counting on a URL posted on a site I do not own to do this - I provide the URL to them and they post as a link.

If I'm reading this correctly, that is a tricky one! In order to "spawn a page without the File, Nav, URL, or Status bar present...." you are asking for a popup window and this can only be done by calling some JavaScript from the page you posted the link. ie. on the site you do not own!

Only if the site you post your URL to does not validate your link in anyway, then you *may* be able to get away with giving them something like...

javascript:window.open('http://mysite.com', 'mysite', 'location=No,menubar=No,resizable=No,scrollbars=No,status=No,toolabr=No,width=400,height=500');

Which, if they don't validate it, should appear in the resulting HTML link (on their site) as:

<a href="javascript:window.open('http://mysite.com', 'mysite', 'location=No,menubar=No,resizable=No,scrollbars=No,status=No,toolabr=No,width=400,height=500');">Open Popup</a>

But this is pretty bad, the link is not called in the way it should be - it is not accessible and is not search engine friendly (http://mysite.com would not be seen)

And also, the calling site would be left on a blank page showing "[object]" or something.

penders

9:52 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Alternatively, if you just want a popup on your own site:

<a href="mypage.html" onclick="window.open('mypage.html', 'mypopup', 'location=No,menubar=No,resizable=No,scrollbars=No,status=No,toolabr=No,width=400,height=500');return false;" title="Opens in a popup window">Goto My Page (Popup)</a>

penders

10:00 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just to note, like JAB states above, there is no gurantee that a browser won't show a nav bar or address bar etc...

... and welcome to WebmasterWorld, hollywoodspeedway!