You are here: DEVPPL Forum Programming Java Forum
NOTIFICATIONS
54.103
MEMBERS
15.695
TOPICS
62.282
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Need To Modifiy Java Code On a onclick Button Command

0

Loading

Need To Modifiy Java Code On a onclick Button Command

Postby ADubin » Sat Oct 04, 2008 8: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
 
Reputation: 0
Posts: 1
Joined: Sat Oct 04, 2008 8:45 pm
Highscores: 0
Arcade winning challenges: 0

Need To Modifiy Java Code On a onclick Button Command - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Postby Rangana » Tue Oct 07, 2008 3: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.
Rangana
 
Reputation: 1
Posts: 935
Joined: Wed Feb 27, 2008 6:14 am
Location: Cebu City Philippines
Highscores: 0
Arcade winning challenges: 0
^ Back to Top