Solved

Load a href with SCRIPT

Posted on 2000-03-21
1
166 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
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.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now