Website Design Testing. What browser is best for testing a website?
In general: When you are testing website design, always check it on Firefox, IE, Chrome and Safari. These browsers make up 97% of the browsers used.
In specific: When in the early design stage use Internet Explorer.
IE requires your code to be more precise. It is less forgiving than Firefox because the designers have gone to significant effort to allow improperly formatted code to run without a problem. IE does not; it requires proper coding. This rigid coding requirement -the necessity for following proper design- is an advantage to you for one reason. If your code runs properly with IE, it will rarely fail on any other browser.
Applying Radio Buttons to Your Website in a Vertical Alignment
<style type="text/css">
.floatLeft {
float: left;
}
.floatRight {
floatRight;
}
</style>
<form class="floatLeft">
<input type="radio" class="floatLeft" />
<input type="radio" class="floatLeft" />
<input type="radio" class="floatLeft" />
<input type="submit" class="floatLeft" value="submit" />
</form>
Now if you want to add some element to the right (such as a <div>) you can use "float:right" to the <div> such as
<div style="float:right;margin-right:20px;">
Be sure to finish off a with a "clear"
such as
<div class="clearStuff"></div>
<style type="text/css">
.clearStuff {
clear:both;
}
Without this clear, the subsequent part of your code will appear in a wrong location.
Eliminate the Submit Button using onChange=""
When using a form < select> tag it is useful to process the users selection without clicking a submit button. Using the onChange="" command, you can run a script immediately after the selection is made. Try the example shown below. Notice that there is no "submit" button. Also notice in this example, there is a "confirm()" command to allow the user to rethink their selection.
< script language="javascript">
function makeChange()
{
var answer=confirm('Shall we make this change?');
if(answer)
{
alert('if this was real your change would have been made');
}
else
{
alert('change has been cancelled');
}
}
< /script>
< FORM>
< SELECT ONCHANGE="makeChange()">
< OPTION VALUE="myhome.html">Dogs
< OPTION VALUE="myresume.html">Cats
< OPTION VALUE="myhobbies.html">Elephants
< OPTION VALUE="mydog.html">Lions
< /SELECT>
< /FORM>
Schedule Your Website to Run at Specified Time
It is possible to have your program run at a specified time: for example, if you have a website and want a file on the website to run at a specified time. The following information is appropriate for a Windows based computer. In Windows XP or equivalent do the following:
- If it doesn't currently exist, create an Internet Explorer (IE) Short-cut on your desktop
- Select the Windows "Control Panel" and select "Scheduled Tasks
- Select "Add Task" and "Next"
- Select "Browse" and then double-click your IE short cut (on your Desktop)
- Use the scheduling windows to determine the start date, time and recurrence
- Enter your User Name and your computer login password (twice)
- Go back to "Scheduled Tasks"; your task will be listed
- Right click on the task and select properties
- Go to tasks and change the "Run" to "C:\Program Files\Internet Explorer\iexplore.exe" yourURLorFileName. For example "C:\Program Files\Internet Explorer\iexplore.exe" http://www.URLname.com;
- Click OK and your task will be scheduled