• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Quick HTML Question

djyox

New Member
For a link, I need to know how to make it pop up, and also have no url, or nav bar...also how to size it....

And also, how do you nav in HTML?
like Back, Forward, Close


Thanks for your help, I know it was easy, but I am dumb. :doh!:


Visit my site: www.kartforum.com
 
Code:
<script language="javascript">
<!--
function view(url,name,stuff)
{
  popupWin=window.open(url,name,stuff);
  popupWin.opener.top.name="opener";
  popupWin.focus();
}
-->
</script>

Code:
<a href="javascript:view('yourpage.html','popup','scrollbars=yes,resizable=no,width=220,height=400')">click to open popup</a>

Resize as you wish :)

To 'navigate in HTML' i'm not 100% sure what you mean, but you can use javascript:history for example

Code:
<a href="javascript:history.go(-1)">go back one page</a>

<a href="javascript:history.go(-2)">go back two pages</a>

<a href="javascript:history.go(1)">go forward one page</a>

etc ..

In order for people to move forward, they must already have the page loaded into their cache, so must have visited it already, as obviously it can't predict what page should be next.

ARRGH! i hate vB for always doing that ;\ - remove the space in "java script"
 
Back
Top