|
|
Quick JS -ASP Scripts - Code Snippets
Keep a window on top:
<body onblur="self.focus();">
Open new window to a specific size-
Body onload set window size:
(goes on the target page- add to or replacing the body tag)
<body onLoad="self.resizeTo(400,500)">
Forward a page using meta
refresh, this goes in the head. It will sent the user to whatever page
you indicate.
This script
sends the user to the page in 10 seconds. Goes between the head tags.
<meta
http-equiv="refresh" content="10;URL=http://www.frontpagewiz.com">
This Script uses JavaScript to send a user to a new page on load.
*FrontPage 2003 has this feature built into Behaviors.
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function GoToPage(url) {
window.location=url;
}
// -->
</script>
</head>
<body onload="GoToPage('http://www.frontpagewiz.com')">
</body>
</html> |
|
Image Rollover, ok this is not so short but I get a lot of request for
this:
|
|