Welcome to W3Courses
 Like Us on Facebook

Webpage

How to Download all the Images From a Webpage in a Single Click

You may want to download all the images from a webpage for several reasons. If you are a web designer, you may want to download all the icons from a webpage. Or, if you are downloading wallpapers from a webpage, you may want to download all of them in a single click instead of saving each wallpaper one by one.

Share

How to insert the search box on a web page in Phonora Photo Gallery?

Search box can be added to a webpage by simple including the searchbox.php file to your php webpage.

<? include('photogallery/searchbox.php'); ?>

Download Phonora Photo Gallery for Free >>

Share

How to Create a Reload Button which will Reload the Webpage upon Clicking using JavaScript

The following code will add a reload button to your webpage. This button will reload your webpage when clicked.

Place the following code in the body section of your webpage where you want to display the button

<form>
<INPUT TYPE="button" VALUE="Reload" onClick='parent.location="javascript:location.reload()"'>
</form>

Share

Automatically Redirect from one Webpage to Another Webpage using JavaScript

Add the following code to the head section of your webpage to automatically redirect your users to another page.

<SCRIPT>
location.href = "http://www.w3courses.com"
</SCRIPT>
 

Share

How to Display a Webpage in the PopUp Window after Clicking from a Link using JavaScript

The following code will add a link to your webpage and when clicked on the link, the hyperlinked webpage will open in a popup window

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=600,left = 262,top = 84');");
}

Share

Disable Right Clicking on Webpage, Images and Photos with JavaScript

Add the following code to the head section of your html document to disable right clicking on your webpage. This way, users wll not be able to right click and save pictures or photographs from your website.

Note: However, users can use other ways to save the photos from your website such as looking at the source code and browsing to the location of the picture and then save it.

<script language=JavaScript>
<!-- //Hide from old Browsers

Share

How to Fix the Background Image on a Webpage using Html

The following parameters when added to the body tag will fix the background image of the html document. That means, when you scroll down the page, the background will remain in its place and will not change or scroll.

<body background="images/background.jpg" bgproperties=fixed>

Share