---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/javascriptaction
---

# JavaScriptAction

## Overview

`JavaScriptAction` is a type in Aspose.PDF FOSS for Go.

This type provides 2 methods for working with JavaScriptAction objects in Go programs.
Available methods include: `ActionType`, `Script`.
All exported members are accessible to any Go application after adding the package (see the [Installation guide](https://docs.aspose.org/pdf/go/getting-started/installation/)).

## Description

`JavaScriptAction` is a type in the Aspose.Pdf FOSS library for Go that exposes 2 methods for programmatic use.

## Methods

| Signature | Description |
|-----------|-------------|
| `ActionType()` → `ActionType` |  |
| `Script()` → `Script` |  |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)