Hiding the cré–¶

liunx

Guest
Hello everyone<br />
<br />
This is my first post and I apologise if this thread has recently been dealt with.<br />
<br />
I would please like to know briefly, how to open a page without all the icons and stuff at the top of the page. For example, when some adverts appear on other websites, you see only the small advertisment box and not the "back" or "forward" or "stop" buttons at the top of the page.<br />
<br />
Forgive me for not being too clear but if anyone can help it would be much appreciated. I'm sure it's fairly simple to somebody that already knows.<br />
<br />
Cheers Peeps<br />
<br />
<br />
Mooners<!--content-->It is a security violation to allow web pages to alter the existing browser window. One option is to open a new page using javascript and alter it. Here is some code that eliminates those pesky buttons. <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<body><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"#" ONCLICK="open('http://www.yahoo.com','MINIme','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resiza ble=0,width=300,height=300')">Open a Window</A> <br />
</body><br />
</html><!--content-->MINIme??? LOL :)<!--content-->yeah, I had watched Austin Powers the night before I wrote that snippet. HA!<!--content-->Hi Dr web<br />
<br />
Thanks for the reply.<br />
<br />
I cut & paste the code you supplied into a webpage but nothing happened when I clicked the "open a window" link. I thought the url was wrong so I removed the space before the com but still nothing.<br />
<br />
Is this code javascript ? What does the 'MINIme' do ? and what about that "#" ? I thought that I should place my target url in there.<br />
<br />
I'm even more confused now (which isn't too hard) but could you pleeeease help again.<br />
<br />
Cheers mate.<!--content-->Save this as a web page and give it a go...<br />
<br />
<html><br />
<head><br />
<title>This is a test</title><br />
<script type="text/javascript"><br />
<!--<br />
function MyExample(){<br />
MyEx=window.open("http://www.yahoo.com","MINIme","width=300,height=300");<br />
}<br />
// --><br />
</script><br />
</head><br />
<body><br />
<a href=http://www.htmlforums.com/archive/index.php/"" onclick="MyExample(); return false;"><br />
click here<br />
</a><br />
</body><br />
</html><!--content-->Is this code javascript?<br />
<br />
yes.<br />
<br />
What does the 'MINIme' do ?<br />
<br />
it sets a name to the new window.<br />
<br />
what about that "#" ? I thought that I should place my target url in there.<br />
<br />
nope. that was supposed to stop loading in your base page. in relation to this... leave the HREF blank as in my example above. just copy&paste that code "as is" and save it as it's own web page (not in your current coding). you can then probably figure it out from there.<!--content-->Both sets of code work the same.<br />
<br />
The only problem with my code is that vbulletin splits the line of code (<a href=http://www.htmlforums.com/archive/index.php/.....>) into two lines. This gives a error, and halts the code from working, however.... if the code is all one line, it works just fine.<br />
<br />
The difference is that I wrote this one embedded into the href tag, while <htmlite> wrote a function call. <br />
<br />
Also, the hash(#) just puts an anchor on the base page..... tells it to sit still, and do nothing while the pop-up loads. If you replace the # with a url, the url will load in the main window while the popup loads as well. <br />
<br />
So, the hash(#) stops that from happening, and prevents directory browsing... much the same as <htmlite>'s return false command. Either way, its the same effect.<br />
<br />
You only need to change the url of yahoo.com to your url.<!--content-->
 
Back
Top