Solved

Load a href with SCRIPT

Posted on 2000-03-21
1
184 Views
Last Modified: 2010-04-09
Hi
Please go look at my site:
http://ejmidi.bizland.com
Set your screen res. to 800*600 or lower

The an alert pop's up saying: "Hey the site is best viewed using ../lores.htm try go there"

But I want it to be automatic. The SCRIPT shall load the lores.htm when the resolution is to low.

That meanes the script shall automaticly take the user from the site
http://ejmidi.bizland.com to
http://ejmidi.bizland.com/lores.htm

How is that done ??
0
Comment
Question by:win32
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 10 total points
ID: 2641253
Replace:(in the left frame)
<script Language="Javascript">
 if(screen.width<1024) alert("Warning: Your resolution is under 1024*768. For better view please go to http://ejmidi.bizland.com/lores.htm");
</script>
with:
<script Language="Javascript">
 if(screen.width<1024)
top.location.href = "http://ejmidi.bizland.com/lores.htm";
</script>

hope this helps
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
css, html 5 43
Help to align the buttons in a row 2 29
Wordpress plugins not working in html 3 25
Make Session back to empty 9 16
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question