NameSilo

NEw Window Question..

SpaceshipSpaceship
Watch

[InF3cTed]

Established Member
Impact
0
I was curious as to how to get the a new indow that doesnt have any menu or address bar.. when a link is clicked..

So when i click link in my sites a small enw window opens with no menu/adress bar and stuff... just teh window
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I was wondering the same thing....
 
0
•••
I got the below stuff from http://www.w3schools.com. Hope it helps.

HTML:
<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("http://www.w3schools.com","my_new_window","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400")
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>

</html>
 
0
•••
Thank You.. Greatly Appreciated..
The Menu And Stuff says yes but i guess i can change them to know..
Thanx Again.. greatly appreciated..
 
0
•••
Ok i gave it a try but.. Still need a little help.. i want to link text not buttons.. and alot of text.. all to open in same method.. how can i do this?

PS - i dont want it to open that w3 website.. i want it to open desired page.. and i dont want to write out all javacsreipt code for everylink..
 
Last edited:
0
•••
Try this; note the "a href" link...

HTML:
<html>
<head>
<script type="text/javascript">

function open_win()
{
window.open("http://www.yourURL.com","my_new_window","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400")
}
</script>
</head>

<body>
<a href="javascript: open_win();">test</a>
</body>

</html>
 
0
•••
OK, I guess you mean different links have different websites. Try this then...

HTML:
<html>
<head>
<title>Untitled</title>


<script type="text/javascript">
function open_win(x)
{
window.open(x,"my_new_window","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400")
}
</script>

</head>

<body>

<a href="javascript: open_win('http://www.w3schools.com');">test</a>
<a href="javascript: open_win('http://www.namepros.com');">test</a>
<a href="javascript: open_win('http://www.google.com');">test</a>

</body>
</html>
 
0
•••
I tried it and it worked... Thank You Guys So Much..
Been looking for this code for a long time.. =)

PS - I have silly navbars that wont go away though.. that just a problem ima have to deal with?
 
0
•••
No Problem InF3cTed. Lemme know if you need further assistance
 
0
•••
there are alot of sites wich have those scrollbar color codes, or do you actually want to remove them?
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back