I have no knowledge of javascript whatsoever.
Could someone write me some simple javascript code to do the following.
lets say you have the following urls:
example.com/form
example.com/form?v=China
example.com/form?v=Brazil
Could the code do the following:
if someone arrives on a page without a parameter (ie. /form) then the heading should be:
Export Your Goods
If some arrives on a page WITH a parameter (eg /form?v=China) then the heading should be:
Export Your Goods To {v}
- ie 'Export Your Goods To China'Many thanks in advance