It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Need To Modifiy Java Code On a onclick Button Command

Need To Modifiy Java Code On a onclick Button Command

Postby ADubin on Sat Oct 04, 2008 7:52 pm

I need to modify the below code so instead going to the previous page I want to to the home page of the website (http://www.dubinphotos.com)
====================================
<BR><BR>
<CENTER><FORM><input type=button value="Back to File Upload" onclick="history.back();"></form></CENTER>
<BR><BR>
=====================================

I would really appreciate some help on this change.

Thanks,
ADubin
ADubin
 
Posts: 0
Joined: Sat Oct 04, 2008 7:45 pm

Postby rangana on Tue Oct 07, 2008 2:16 am

First of all, you should know by now, that JAVA is far different from Javascript.

Your problem is Javascript and not otherwise. I guess webmaster or some moderators will move this in the right place for you.

Secondly, you should be aware that center is a deprecated tag.

For your problem, replace highlighted:
<input type=button value="Back to File Upload" onclick="history.back();">

...with:
Code: Select all
location.href='http://www.dubinphotos.com'


Hope that helps.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 0 guests