Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

NEw Window Question..

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I was wondering the same thing....
 
0
Close
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
Close
Thank You.. Greatly Appreciated..
The Menu And Stuff says yes but i guess i can change them to know..
Thanx Again.. greatly appreciated..
 
0
Close
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
Close
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
Close
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
Close
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
Close
No Problem InF3cTed. Lemme know if you need further assistance
 
0
Close
there are alot of sites wich have those scrollbar color codes, or do you actually want to remove them?
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back