You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 19-06-2014 18:32:30

rsalomone
Contributors
Registered: 22-11-2013
Posts: 101
Website

Quick Javascript Question

How do I handle a javascript on a clickable tile.

I wish to simulate a back function (by using a back tile).

Do I use the

"url"=>"javascript:window.history.back();"

command?

rs

Offline

#2 20-06-2014 08:40:38

chrismaliszewski
Contributors
From: Torun, Poland
Registered: 06-05-2013
Posts: 246
Website

Re: Quick Javascript Question

Works for me:

array("type"=>"custom","group"=>0,"x"=>0,"y"=>0,'width'=>0.5,'height'=>0.5,"background"=>"blue",
"title"=>"Back",
"content"=>"<img onclick='window.history.back()' width='100%' src='img\back.png'/>", 
"classes"=>""),

Last edited by chrismaliszewski (20-06-2014 08:41:35)

Offline

#3 23-06-2014 17:23:48

rsalomone
Contributors
Registered: 22-11-2013
Posts: 101
Website

Re: Quick Javascript Question

Thanks

Offline

Board footer

Powered by FluxBB