Skip to Content
0
Jan 04, 2012 at 11:29 AM

using javascript for master page

56 Views

Hi All,

I created a form with some javascript, so on ::intitial the form would check a parameter.

Depending on the paramater a url would get a different value.

So code was

if (TYPE == '1')
{
img_header.value.image.href = "http://....."
}

This is working perfect.

However, now i changed the location img_header to the master page because i want it on every page.

Since I don't have an initial for the master page, ik took the initial of the paramater TYPE, which is also present on the master page.

so TYPE::Initial

Here I change the color of a rectangle on my masterpage, which is executed correctly, however same code as above does not result in the filling of the image.

Anyone got any clue ?